import request from '../../utils/request'

// 分页查询
export function pageList(data: object) {
    return request({
      url: '/sys/userList',
      method: 'post',
      data: data
    })
  }

  export function addOrUpdate(data: object) {
    return request({
      url: '/sys/userAddorUpdate',
      method: 'post',
      data: data
    })
  }

  export function userDelById(id: Number) {
    return request({
      url: '/sys/userDelById/'+id,
      method: 'get'
    })
  }
  //修改密码
  export function updatePass(data: Object) {
    return request({
      url: '/sys/updatePassword',
      method: 'post',
      data:data
    })
  }